@extends("/paging_template",title="请选择下级代理")
@import com.mgfireworks.mgplatform.mgadmin.sys.model.Organization
@import com.mgfireworks.mgplatform.mgadmin.constants.*
@args List<Organization> organizationList
<s_panel>
    <s_input name="orgName" value="@val("orgName")" text="机构名称"></s_input>
    <s_chooser text="区域" name="areaName" name2="areaId" value="@val("areaName")" value2="@val("areaId")"></s_chooser>
    <s_buttons slot="button" cols="3">
        <s_button type="query"></s_button>
        <s_button type="select">选择</s_button>
        <s_button type="back">取消</s_button>
    </s_buttons>
</s_panel>

<d_table min-width="800px">
    <d_tr slot="head">
        <d_th class="td_row_id"></d_th>
        <d_th>机构编号</d_th>
        <d_th>机构名称</d_th>
        <d_th>负责人</d_th>
        <d_th>联系方式</d_th>
        <d_th>所在地区</d_th>
    </d_tr>
    @if(organizationList){
    @{int i=0;}
    @for(Organization p : organizationList){
    <d_tr slot="body" class="table_row @(i%2==0?"odd":"event")">
    @{i++;}
    <d_td class="d_td_row_id">
        <input type="checkbox" class="flat" name="__recordId" value="@p.getOrgId()"/>
    </d_td>
    <d_td name="orgId">@p.getOrgId()</d_td>
    <d_td name="orgName">@p.getOrgName()</d_td>
    <d_td>@p.getOrgOfficial()</d_td>
    <d_td>@p.getOrgContact()</d_td>
    <d_td>@p.getAreaName()</d_td>
    </d_tr>
    }}
</d_table>